package roleService

import (
	"news_for_deepseek_interface/model"
	adminModel "news_for_deepseek_interface/model/admin"
)

func All() ([]adminModel.AdminGroupStruct, error) {
	var roles []adminModel.AdminGroupStruct
	db := model.GetInstance().GetDB().Model(&adminModel.AdminGroupStruct{})

	err := db.Find(&roles).Error
	return roles, err
}
